lib/ref: Add OstreeCollectionRef type for globally unique refs
authorPhilip Withnall <withnall@endlessm.com>
Wed, 7 Jun 2017 14:27:10 +0000 (15:27 +0100)
committerAtomic Bot <atomic-devel@projectatomic.io>
Mon, 26 Jun 2017 15:56:07 +0000 (15:56 +0000)
commit0a20e7d43c43c9d5793f0fdb5bf8422affa5d841
tree3d9636d1489d1f7cf4f868777a98ddf4877c23c2
parentbf1f8eb0fa36204377127e335b01b4bb95666cb2
lib/ref: Add OstreeCollectionRef type for globally unique refs

This is a type representing the tuple (collection ID, ref name), which is
guaranteed to be globally unique. It will be used in upcoming commits.

It introduces the concept of a ‘collection’ which is a unique, curated
set of refs which lie in the same trust domain (i.e. all signed by the
same key and validated by the same developer). Flathub might be a
collection, for example; or the set of OS refs coming from a particular
OS vendor.

It includes a function for validating collection IDs.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
Closes: #924
Approved by: cgwalters
12 files changed:
Makefile-libostree-defines.am
Makefile-libostree.am
apidoc/ostree-experimental-sections.txt
src/libostree/libostree-experimental.sym
src/libostree/ostree-autocleanups.h
src/libostree/ostree-core-private.h
src/libostree/ostree-core.c
src/libostree/ostree-core.h
src/libostree/ostree-ref.c [new file with mode: 0644]
src/libostree/ostree-ref.h [new file with mode: 0644]
src/libostree/ostree-repo.h
src/libostree/ostree.h